<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>客户组织机构</title>
		<%@ include file="/include/resources.jsp" %>
	</head>
	<body>
		<script type="text/javascript" src="msi/customer/chkorg.js"></script>
		<script type="text/javascript">
			$(function(){
				var custId = $("#custId").val();
				$('#chkorgtable').datagrid({
					width : 660,
					pagination:true,
					url:"searchChkOrgList.do",
					queryParams:{"chkOrg.custId":custId},
					onDblClickRow:function(rowIndex, rowData) {
						openChkOrgForm(rowData.chkOrgId);
					}
				});		  
			});
		</script>
		<input type="hidden" name="custId" id="custId" value="<s:property value='customer.custId'/>"/>
		<div style="padding:5px;background:#fafafa;border-bottom:1px solid #eee;">
			<table cellpadding="0" cellspacing="0" style="width:100%">
				<tr>
					<td style="text-align:right">
						<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="javascript:$('#chkorg').dialog('close')">关闭</a>
					</td>
				</tr>
			</table>
		</div>
		<div style="padding:10px">
			<div style="padding-left:5px;padding-right: 5px">
				<table cellpadding="0" cellspacing="0" class="form-table" border="0" width="660">
					<tr>
						<th>客户名称：</th>
						<td style="text-align:left;border-bottom:1px solid #ccc"><s:property value="customer.custName"/></td>
						<th>从事行业：</th>
						<td style="text-align:left;border-bottom:1px solid #ccc"><s:property value="customer.industry"/></td>
						<th>联系电话：</th>
						<td style="text-align:left;border-bottom:1px solid #ccc"><s:property value="customer.phone"/></td>
					</tr>
					<tr>
						<th>传真：</th>
						<td style="text-align:left;border-bottom:1px solid #ccc"><s:property value="customer.fax"/></td>
						<th>联系人：</th>
						<td style="text-align:left;border-bottom:1px solid #ccc"><s:property value="customer.linkman"/></td>
						<th>联系人电话：</th>
						<td style="text-align:left;border-bottom:1px solid #ccc"><s:property value="customer.linkPhone"/></td>
					</tr>
					<tr>
						<th>地址：</th>
						<td colspan="5" style="text-align:left;border-bottom:1px solid #ccc"><s:property value="customer.address"/></td>
					</tr>
				</table>
			</div>
			<div style="margin:10px 0;">
				<table id="chkorgtable" toolbar="#chkorgbar" style="height:300px" fitColumns="true" singleSelect="true" rownumbers="true" showFooter="true">
					<thead>
						<tr>
							<th field="chkOrgId" hidden="true">组织机构ID</th>
							<th field="chkOrgCode" width="80">机构代码</th>
							<th field="chkOrgName" width="120">机构名称</th>
							<th field="chkOrgAddress" width="100">机构地址</th>
							<th field="chkOrgPhone" width="100">电话</th>
							<th field="createTime" width="100">创建时间</th>
						</tr>
					</thead>
				</table>
			</div>
			<div class="toolbar" id="chkorgbar">
				<table cellpadding="0" cellspacing="0" style="width:100%">
					<td>
						<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openChkOrgForm();">新增机构</a>
						<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="delChkOrgForm();">删除机构</a>
						<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="">机构资料</a>
					</td>
					<td style="text-align:right">
						<input id="chkOrg.chkOrgName" class="easyui-searchbox" prompt="按机构名称查询" searcher="normalChkOrgQuery" style="width:200px"></input>
						<a href="#" class="easyui-linkbutton" plain="true" onclick="">高级查询</a>
					</td>
				</table>
			</div>
		</div>
		<div id="chkorgDial" class="easyui-dialog" style="width:470px;height:200px;position:relative" closed="true" modal="true"></div>
	</body>
</html>